@import '../../../common/variable.less';

.top-bar {
    height: 30px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e6e6e6;
   
    
    span {
        display: inline-block;
        line-height: 30px;
        // font-weight: normal;
        font-size: 12px;
        color: #888;
        &::after {
            content: "|";
            margin: 0 12px 0 7px;
            color: #888;
        }
    }
    a {
       color: #888;
       font-size: 12px;
       &:hover {
           color: #ff981c;
       }
    }
}
.header {
    .logo {
        display: inline-block;
        padding: 10px 0;
    }

    .sc-logo {
        width: 180px;
        img {
            width: 100%;
        }
    }

    .col {
        display: inline-block;
        vertical-align: middle;
    }
    .select-icon {
        display: inline-block;
        width: 8px;
        height: 10px;
        margin-left: 6px;
        background: url(../../../image/arrow_down.png) no-repeat center center / contain;
    }
    
    .area-select {
        position: absolute;
        top: 50%;
        // width: 70px;
        height: 30px;
        line-height: 30px;
        margin-top: -14px;
        margin-left: 15px;
        margin-right: 46px;
        text-align: center;
        font-size: 19px;
        font-weight: lighter;
        // box-sizing: border-box;
        cursor: pointer;
        .text-wrap {
            position: relative;
            z-index: 46;
            margin: 0 auto;
            padding: 0 6px;
            // background-color: #fff;
        }
        .area-drop-down {
            position: absolute;
            top: 29px;
            left: -1px;
            width: 300px;
            padding: 15px 20px;
            z-index: 45;
            display: none;
            background-color: #fff;
            border: 1px solid  #d9d9d9;
            .panel {
                position: absolute;
                left: -1px;
                top: -31px;
                width: 70px;
                height: 30px;
                border: 1px solid #d9d9d9;
                border-bottom: 0;
                background-color: #fff;
            }
        }
        .hot-tag {
            text-align: left;
            line-height: 1;
            padding-bottom: 16px;
            border-bottom: 1px solid #d9d9d9;
            .hot-tag-item {
                display: inline-block;
                margin-left: 10px;
                font-size: 14px;
                line-height: 1;
                color: #ff981c;
                font-weight: bold;
                cursor: pointer;
            }
            .tag-label {
                color: #aeadad;
                font-weight: normal;
                margin-left: 0;
            }
        }
        
        .tags {
            padding-top: 12px; 
            line-height: 1;
            text-align: left;
            .tag-item {
                display: inline-block;
                margin-right: 15px;
                font-size: 14px;
                line-height: 1;
                font-weight: bold;
                color: #848484;
                margin-bottom: 12px;
                cursor: pointer;
                &:hover {
                    color: @theme-color;
                }
            }
        }
        
        &:hover {
            // width: 68px;
            // border: 1px solid #d9d9d9;
            // border-bottom: 0;
            // .area-drop-down {
            //     display: block;
            // }
        }
    }
    .logo-title {
        position: relative;
        top: 2px;
        margin-left: 110px
    }
    .search {
        float: right;
        margin-top: 52px;
        height: 38px;
        line-height: 38px;
        font-size: 0;
        .search-box {
            border: 1px solid #e8e8e8; 
            border-right: 0;
        }
        .search-input {
            width: 230px;
            height: 33px;
            margin-right: 10px;
            border: 0;
            font-size: 14px;
            color: #888;
        }
        .search-btn {
            position: relative;
            width: 44px;
            height: 40px;
            text-align: center;
            line-height: 38px;
            vertical-align: middle;
            border: 1px solid #e8e8e8;
            &:hover {
                background: @theme-color;
                border-color: @theme-color;
                .search-icon {
                    fill: #fff;
                }
            }
        }
        
    }
    
    .type-select {
        position: relative;
        display: inline-block;
        width: 76px;
        height: 40px;
        line-height: 40px;
        margin-right: 12px;
        text-align: center;
        font-size: 14px;
        color: #5c5c5c;
        span {
            cursor: pointer;
        }
        &::after {
            content: '';
            position: absolute;
            top: 50%;
            right: 0;
            margin-top: -10px;
            height: 20px;
            border-right: 1px solid #e8e8e8;
        }
        .drop-down {
            position: absolute;
            top: 40px;
            left: 0;
            right: 0;
            z-index: 20;
            display: none;
            line-height: 1;
            background-color: #fff;
            box-shadow: 0 5px 8px -2px fadeout(#000, 40%);
            .drop-item {
                padding: 6px 0;
                cursor: default;
                &:hover {
                    background-color: #e4e4e4;
                }
            }
        }
        &:hover {
            .drop-down {
                display: block;
            }
        }
    }
    
    .hot-tag {
        .tag {
            display: inline-block;
            vertical-align: middle;
            margin-right: 6px;
            padding: 2px 4px;
            color: #888;
            background: #f2f2f2;
            font-size: 12px;
            line-height: 22px;
            cursor: default;
            &:hover {
               background: @theme-color;
               color: #fff; 
            }
        }
    }
    .search-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -10px;
        margin-top: -10px;
        fill:#dddddd;
    }
}